package eerbaar.v2.effects;

import java.awt.Graphics2D;

import eerbaar.v2.app.tasks.IGameTask;

public class DisplayEffectsTask implements IGameTask {

    // private MainWindow window;
    private final EffectsView view = new EffectsView();

    @Override
    public void doTask(Graphics2D g) {

        // if (this.window == null) {
        // IApp app = App.instance();
        // this.window = app.getMainWindow();
        // }
        //
        // Canvas c = this.window.getCanvas();
        this.view.draw(g);
    }

    @Override
    public Priority getPriority() {
        return Priority.AFTER_LAST;
    }

    @Override
    public int getRate() {
        return 1;
    }

    @Override
    public boolean runWhenSuspended() {
        return false;
    }

}
